.weui-switch {
  display: block;
  position: relative;
  width: 36px;
  height: 20px;
  /* border: 1px solid #dfdfdf; */
  outline: 0;
  border-radius: 10px;
  /* box-sizing: border-box; */
  background-color: transparent;
  transition: background-color 0.1s, border 0.1s;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  cursor: pointer;
}

.weui-switch:before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  /* background-color: rgba(0, 0, 0, 0.1); */
  background-color: var(--current-switch-unselect-bg-color);
  transition: transform 0.35s cubic-bezier(0.45, 1, 0.4, 1);
}

.weui-switch:after {
  content: " ";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background-color: #ffffff;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); */
  transition: transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35);
}

.weui-switch-on {
  /* border-color: #6f6f6f; */
  /* background-color: #1aad19; */
}

.weui-switch-on:before {
  /* border-color: #1aad19; */
  background-color: var(--current-switch-select-bg-color);
}

.weui-switch-on:after {
  transform: translateX(16px);
}
